using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataAccessLayer;

public partial class web_Controls_ctrl_vl_left_news_main : System.Web.UI.UserControl
{
    Common _common = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        _common = new Common();
        LoadNewsMain();
    }
    void LoadNewsMain()
    {
        string _sql = "select top 10 * from TinTuc_tin_tuc where ma_loai_tin_tuc = '01' and kich_hoat = 1 order by convert(datetime, ngay_tao) desc";
        DataSet _ds = _common.ExeceuteDataset(_sql);
        rpt_news_main.DataSource = _ds;
        rpt_news_main.DataBind();
    }
}
